<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
var cnt = 1;
function addFile(){
	var add = document.getElementById("add");
	var addfile = document.createElement("input");
	var br = document.createElement("br");
	addfile.setAttribute("type", "file");
	addfile.setAttribute("name", "upfile["+cnt+"]");
	add.appendChild(addfile);
	add.appendChild(br);
	cnt++;
}
</script>
</head>
<body>
방등록 페이지_3 (room_input_fileup.jsp) <br><br>

파일 업로드 요청<br>
<form action="/home_sharing_system/roominputfileup.do" name="form" method="post" enctype="multipart/form-data">
	
	<input type="hidden" name="accommodates" value="${requestScope.rdto.accommodates }">
	<input type="hidden" name="bedrooms" value="${requestScope.rdto.bedrooms }">
	<input type="hidden" name="title" value="${requestScope.rdto.title }">
	<input type="hidden" name="description" value="${requestScope.rdto.description }">
	<input type="hidden" name="phone" value="${requestScope.rdto.phone }">
	<input type="hidden" name="nation" value="${requestScope.rdto.nation }">
	<input type="hidden" name="propertyId" value="${requestScope.rdto.propertyId }">
	<input type="hidden" name="privacyId" value="${requestScope.rdto.privacyId }">
	<input type="hidden" name="addressId" value="${requestScope.rdto.addressId }">
	<input type="hidden" name="addDetail" value="${requestScope.rdto.addDetail }">
	<input type="hidden" name="memberId" value="${requestScope.rdto.memberId }">
	
	<input type="hidden" name="price1" value="${requestScope.rdto.price1 }">
	<input type="hidden" name="price7" value="${requestScope.rdto.price7 }">
	<input type="hidden" name="price30" value="${requestScope.rdto.price30 }">
	<input type="hidden" name="checkInTime" value="${requestScope.rdto.checkInTime }">
	<input type="hidden" name="checkOutTime" value="${requestScope.rdto.checkOutTime }">
	<input type="hidden" name="refundId" value="${requestScope.rdto.refundId }">
	<div id="add">
	<input type="file" name="upfile[0]" id="first"><br>
	</div>
	<input type="button" value="파일추가" onclick="addFile()">
	<input type="submit" value="전송">	
</form>
</body>
</html>